import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;
/**
 * 战斗场景摄像机
 */
@ccclass('BattleCamera')
export class BattleCamera extends Component {

    followingTarget: Node;
    start() {

    }

    update(deltaTime: number) {
        if (!this.followingTarget) {
            return;
        }
        this.node.setWorldPosition(this.followingTarget.worldPosition);
    }
}


